/*
 * @Author: wwssaabb
 * @Date: 2021-08-14 16:03:38
 * @LastEditTime: 2021-08-14 16:10:16
 * @FilePath: \ts_demo\demo\索引访问.ts
 */

interface Eg1{
  name:string,
  readonly age:number,
  sex:string
}

type v1=Eg1['name']
let a:v1='adwd'
type v2=Eg1['age']
let b:v2=16
// type v3=Eg1['age'|'age22']
// let c:v3='adawda'
type v4=Eg1[keyof Eg1]
let d:v4='adwd'

export {}